package com.ctshk.rpc.bus.req;

import java.io.Serializable;
import java.time.LocalDate;

import javax.validation.constraints.NotNull;

import org.springframework.format.annotation.DateTimeFormat;

import com.ctshk.common.model.PageReq;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 巴士票预订查询req
 * </p>
 *
 * @author 彭柳霖
 * @since 2021-02-09
 */
@Data
@ApiModel(value="ReservationBusPageReq对象", description="巴士票预订查询req")
public class ReservationBusPageReq extends PageReq  implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "巴士公司名称")
    private String busCompaniesName;

    @ApiModelProperty(value = "出发城市名称")
    private String departureCityName;

    @ApiModelProperty(value = "到达城市名称")
    private String arriveCityName;

    @ApiModelProperty(value = "上车站名称")
    private String boardingStationName;

    @ApiModelProperty(value = "下车站点名称")
    private String alightingStationName;

    @NotNull(message = "出发日期不能为空")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "出发日期")
    private LocalDate queryDate;

    @ApiModelProperty(value = "旅客类型")
    private Integer passengerType;
    
    @ApiModelProperty(value = "座位库存数")
    private Integer inventory = 0;

    @ApiModelProperty("成人数量")
    private Integer passengerAdultNum = 0;
    
    @ApiModelProperty("小童数量")
    private Integer passengerChildrenNum = 0;
    
    @ApiModelProperty("老人数量")
    private Integer passengerOldNum = 0;
    
    @ApiModelProperty("代理ID")
    private Long agentId;
    
}
